package com.itheima.d2_static_method;

public class Student {
    // 类方法
    static void printHelloWord() {
        System.out.println("hello word");
    }

    // 实例方法
    String printPass(int score) {
        String str = "成绩" + (score >= 60 ? "及格" : "不及格");
        System.out.println(str);
        return str;
    }
}
